<?php
namespace app\index\model;

use think\Model;
use think\model\concern\SoftDelete;

class Goods extends Model{
    //使用软删
    use SoftDelete;
    //建立一个存放时间戳的软删字段
    protected $deleteTime='delete_time';
    protected $pk='goods_id';

}